<include file="Public:header" />
<div style="background:#fff; height:40px; line-height:40px; border-bottom:1px solid #ccc;" class="headernav">
    <a href="javascript:history.go(-1);" style="height:40px; width:40px; display:block; float:left; text-align:center;"><i class="fa fa-angle-left"></i></a>
    <a href="__APP__/" style="height:40px; width:40px; display:block; float:right; text-align:center;"><i class="fa fa-home"></i></a>
    
    <a href="{:U('Cart/index')}" style="height:40px; width:40px; display:block; float:right; text-align:center;"><i class="fa fa-shopping-cart"></i></a>
</div>
<style>
body{ background: #f1f1f1;}
.panel-heading {
   padding: 3px 15px;
}

#select{
  margin-right: 5px;
  margin-top: 3px;
}

.list-group {
	margin-bottom: 5px;
}
.pages {
	text-align: center;
}
a{color:#333;}
.panel{background:#fff;}
.headernav a{font-size:1.5em; color:#000;}
.media{padding-left:5px; padding-bottom:10px;}
	

  .container .page-header h1{
    font-size: 2em;
    padding-left: 15px;
  }
  .container .page-header h1 a{
    color: white;
  }

  .list-group .list-group-item .name{
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 0.3em;
  }
  .list-group .list-group-item p{
    margin-bottom: 5px;
    font-size: 1.0em;
  }
</style>
<div class="container">



  <div class="list-group" style="margin:0; margin-top:4px;">
    <volist name="address" id="addr">
        <a style="border-radius:0; border-left:none; border-right:none;" href="{:U('Cart/CheckOut2',array('address_id'=>$addr['id']))}" class="list-group-item">
          <p class="name">{$addr['yourname']}，{$addr['tel']}</p>
          <p>{$addr['address']} <span style="color:#f00; font-size:9px; float:right;">点击使用这个地址</span></p>
        </a>
    </volist>
  </div>
</div><br>
<empty name="address">
 <script>
     window.location.href = '{:U('Cart/address')}';
 </script>
</empty>
<a href="{:U('address')}" class="btn btn-success" style="margin:0 auto; width:90%; display:block;">添加新地址<a>
<include file="Public:footer" />
